﻿<UserControl x:Class="Microsoft.Research.ScientificWorkflow.UIDesigner.SubsectionExpandedCtrl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="30,7,35,5">
    <UserControl.Resources>
        <Style x:Key="minusButtonWF" BasedOn="{x:Null}" TargetType="{x:Type Button}">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type Button}">
                        <Grid>
                            <Rectangle Fill="#FFFFFFFF" Stroke="#FF94B3C4" RadiusX="3" RadiusY="3" x:Name="rectangle"/>
                            <Rectangle Fill="#FF3B6A7A" Stroke="{x:Null}" Margin="5.996,2.998,6.004,3.002" RenderTransformOrigin="0.5,0.5">
                                <Rectangle.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform ScaleX="1" ScaleY="1"/>
                                        <SkewTransform AngleX="0" AngleY="0"/>
                                        <RotateTransform Angle="90"/>
                                        <TranslateTransform X="0" Y="0"/>
                                    </TransformGroup>
                                </Rectangle.RenderTransform>
                            </Rectangle>
                        </Grid>
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsFocused" Value="True"/>
                            <Trigger Property="IsDefaulted" Value="True"/>
                            <Trigger Property="IsMouseOver" Value="True">
                                <Setter Property="Fill" TargetName="rectangle" Value="#FFCDEAF1"/>
                            </Trigger>
                            <Trigger Property="IsPressed" Value="True"/>
                            <Trigger Property="IsEnabled" Value="False"/>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </UserControl.Resources>
    <Grid Name="grdMainHolder">
        <Border Name="MainBorder" MinWidth="200" CornerRadius="4,4,4,4" BorderThickness="1,1,2,2" BorderBrush="#FFBDBDBD">
            <Border.Background>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FFFFFFFF" Offset="0"/>
                    <GradientStop Color="#FFF2F2F2" Offset="1"/>
                </LinearGradientBrush>
            </Border.Background>
            <Grid Name="grdDataHolder">
                <Grid.RowDefinitions>
                    <RowDefinition Height="24"/>
                    <RowDefinition Height="*"/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="10.313"/>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="28"/>
                    <ColumnDefinition Width="10.313"/>                    
                </Grid.ColumnDefinitions>
                <Rectangle x:Name="rectangleLeft" Grid.Row="0" Fill="#FFFFFFFF" Stroke="#FF94B3C4" HorizontalAlignment="Left" Margin="-6,12.5,0,0" VerticalAlignment="Top" Width="10" Height="10" Grid.Column="0"/>
                <DockPanel HorizontalAlignment="Left" LastChildFill="False" Grid.Row="1" VerticalAlignment="Center" Name="dckSubsectionContentHolder" Grid.Column="1"/>
                <TextBlock Name="txtBlkHeader" Margin="10,0,0,0" Grid.Row="0" Grid.Column="1"/>
                <Button Name="btnCollapse" Grid.Row="0" Click="OnSubsectionCollapseClick" HorizontalAlignment="Left" Style="{DynamicResource minusButtonWF}" Width="14" Content="Button" Height="14" VerticalAlignment="Center" Grid.Column="2" Margin="0,0,0,0"/>
                <Rectangle x:Name="rectangleRight" Grid.Row="0" Fill="#FFFFFFFF" Stroke="#FF94B3C4" HorizontalAlignment="Right" Margin="0,12.5,-6,0" VerticalAlignment="Top" Width="10" Height="10" Grid.Column="3"/>
            </Grid>
        </Border>
    </Grid>
</UserControl>
